﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Web.UI.WebControls;

namespace AdventureWorks.DashboardGroep6
{
    public partial class Dashboard : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (Session.IsNewSession)
                {
                    Session["loggedin"] = false;
                }
                if (Session["loggedin"].Equals(false) && !Request.Path.Equals("/content/login.aspx"))
                {
                    Response.Redirect("/content/login.aspx");
                }
            }
            catch
            {

            }
        }
    }
}
